﻿
namespace FBProject.BusinessLogic
{
    public class ExternalTask
    {
        public string TaskNumber { get; set; }

        public string Name { get; set; }

        public int Estimate { get; set; }

        public int RemainingWork { get; set; }

        public string Resource { get; set; }

        public short Priority { get; set; }

        public string Milestone { get; set; }

        public bool Completed { get; set; }

        public bool NewTask { get; set; }

        public string TaskDescription
        {
            get
            {
                return (!string.IsNullOrEmpty(this.TaskNumber) ? string.Empty : "FB" + this.TaskNumber + " ") + this.Name;
            }
        }

        public ExternalTask()
        {
            this.NewTask = true;
        }

    }
}
